//const isRelease = process.env.NODE_ENV === 'production';
const isRelease = false;
/**Web 服务端口 */
const serverPort = isRelease ? 7003 : 7003;

const dev_dbConfig = {
    host: '47.108.218.17',
    user: 'root',
    port: '3306',
    password: 'whw@2023',
    database: 'zqyff',
    waitForConnections: true,
    connectionLimit: 10,
    queueLimit: 0,
  }
const pro_dbConfig = {
    host: '47.98.99.253',
    user: 'root',
    password: 'XdnTech@2023',
    database: 'lamp',
    waitForConnections: true,
    connectionLimit: 50,
    queueLimit: 0,
}

/**数据库配置 */
const dbConfig = isRelease ? pro_dbConfig : dev_dbConfig;
/**redis配置 */
const redisConfig = isRelease ? 'redis://:ankuai@118.31.14.83:6379' : 'redis://:ankuai@118.31.14.83:6379';



export {
    isRelease, 
    serverPort, 
    dbConfig, 
    redisConfig
}